package com.hebeiboruan.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.alibaba.excel.annotation.ExcelProperty;
import com.hebeiboruan.entity.systemEnum.RouterTypeEnum;

@TableName("br_router")
public class Router implements Serializable{
private static final long serialVersionUID = 1L;

    @TableId(value="router_no",type = IdType.AUTO 
   )
    @ExcelProperty(value = "路由编号")
    private Integer routerNo;

    public Integer getRouterNo(){
    return this.routerNo;
    }

    public void setRouterNo(Integer routerNo){
    this.routerNo=routerNo;
    }


    @TableField("router_path")
    @ExcelProperty(value = "路由路径")
    private String routerPath;

    public String getRouterPath(){
    return this.routerPath;
    }

    public void setRouterPath(String routerPath){
    this.routerPath=routerPath;
    }


    @TableField("router_component")
    @ExcelProperty(value = "路径组件")
    private String routerComponent;

    public String getRouterComponent(){
    return this.routerComponent;
    }

    public void setRouterComponent(String routerComponent){
    this.routerComponent=routerComponent;
    }


    @TableField("router_name")
    @ExcelProperty(value = "路由名")
    private String routerName;
    @TableField("router")
    @ExcelProperty(value = "父级路由")
    private String router;
    @TableField("router_icon")
    @ExcelProperty(value = "图标")
    private String routerIcon;

    public String getRouterName(){
    return this.routerName;
    }

    public void setRouterName(String routerName){
    this.routerName=routerName;
    }
 @TableField("router_type")
 @ExcelProperty(value = "路由类型")
   private Integer routerType;

 public Integer getRouterType() {
  return routerType;
 }

 public void setRouterType(Integer routerType) {
  this.routerType = routerType;
 }
 public void setRouterType(RouterTypeEnum routerType) {
  this.routerType = routerType.getValue();
 }

 public String getRouter() {
  return router;
 }

 public void setRouter(String router) {
  this.router = router;
 }

 public String getRouterIcon() {
  return routerIcon;
 }

 public void setRouterIcon(String routerIcon) {
  this.routerIcon = routerIcon;
 }
 @TableField(exist = false)
 private List<Router> child;

 public List<Router> getChild() {
  return child;
 }

 public void setChild(List<Router> child) {
  this.child = child;
 }
}

